home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
allfiles
/
angry
/
main.dir
/
00009_Script_dropz
< prev
next >
Wrap
Text File
|
1999-03-01
|
2KB
|
81 lines
property pSpr
property pFadeCount
property pActiveDrop
property pYOffset, pOrigLoc, pYLoc, pNum, pActive
global bgSpr
on new me, thisSpr
set pSpr = thisSpr
set pFadeCount = 20
set pNum = the memberNum of sprite(pSpr)
set pActive = TRUE
puppetSprite pSpr, TRUE
set pYLoc = the locV of sprite(pSpr)
set pYOffset = the locV of sprite(bgSpr) - the locV of sprite(pSpr)
set pOrigLoc = the loc of sprite(bgSpr) - the loc of sprite(pSpr)
return me
end
on drop me, underThis
set the loc of sprite(pSpr) to the loc of sprite(underThis)
if random(3) = 2 then
set the member of sprite(pSpr) to member "drop02"
set pFadeCount = 10
else
set the member of sprite(pSpr) to member "drop01"
end if
set pActiveDrop = TRUE
end
on check me
if pActiveDrop then set pFadeCount = pFadeCount - 1
if pFadeCount = 0 then
set the locH of sprite(pSpr) to 1000
set pFadeCount = 20
set the blend of sprite(pSpr) to 100
set pActiveDrop = FALSE
else if pFadeCount = 10 then
if the member of sprite(pSpr) = member "drop01" then
set the member of sprite(pSpr) = member "drop02"
end if
else if pFadeCount = 5 then
set the blend of sprite(pSpr) to 80
else if pFadeCount = 3 then
set the blend of sprite(pSpr) to 50
end if
end
on scrollDrops me, thisDir, thisSpeed
set pYloc = 1000
set pActive = FALSE
if the locV of sprite(pSpr) <> pYLoc then
set the locV of sprite(pSpr) = pYLoc
end if
end